﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataAccess;
using System.Data;
using MySql.Data.MySqlClient;

namespace BusinessFacade
{
     public class Busi_sys_backups
    {
         public int selecttime() //查询备份的时间间隔
         {
             DataSet ds = DbHelperMySql.RunProcedure("backupstime");
                 return int.Parse(ds.Tables[0].Rows[0][0].ToString());
         }
         public void updatetime(int time) //修改备份的时间间隔
         {
             MySqlParameter[] parameters = { new MySqlParameter("backupsTime", MySqlDbType.VarChar, 8) };
             parameters[0].Value = time;
             DbHelperMySql.RunProcedure("Updatebackupstime", parameters);
         }
    }
}
